import 'package:dio_log/dio_log.dart';
import 'package:flutter/material.dart';
import 'package:network_logger/network_logger.dart';
import 'package:package_model/package_model.dart';
import 'package:person_model_project/app.dart';
import 'package:person_model_project/main/main_page.dart';
import 'package:person_model_project/router_manager.dart';
import 'package:base_router_helper/base_router_helper.dart';

void main() {
  App.initAppConfig();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    RouterManager.initRouter();

    return ScreenUtilInit(
      child: MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
          visualDensity: VisualDensity.adaptivePlatformDensity,
        ),
        onGenerateRoute: RouterManager.router.generator,
        home: MainPage(),
      ),
      designSize: Size(750, 1335),
    );
  }
}


